<?php
use app\models\Post;
use yii\bootstrap\Modal;
use yii\grid\GridView;
use yii\helpers\Html;
use yii\helpers\Url;

$this->title = '管理首页';
Yii::$app->db->open();
?>
<div class="nav-tabs-custom">
    <div class="box">
        <div class="box-body">
            <header class="panel-heading">系统信息</header>
            <div class="panel-body">
                <table class="table table-bordered table-hover">
                    <tbody>
                    <tr>
                        <td>QQ交流群</td>
                        <td>389762562</td>
                    </tr>
                    <tr>
                        <td>Yii版本</td>
                        <td><?=Yii::getVersion();?></td>
                    </tr>
                    <tr>
                        <td>操作系统</td>
                        <td><?=php_uname('s').' --- '.php_uname('r');?></td>
                    </tr>
                    <tr>
                        <td>PHP版本</td>
                        <td><?= PHP_VERSION ?></td>
                    </tr>

                    <tr>
                        <td>PHP运行方式</td>
                        <td><?=PHP_SAPI;?></td>
                    </tr>
                    <tr>
                        <td>MySQL版本</td>
                        <td><?=Yii::$app->db->pdo->getAttribute(PDO::ATTR_SERVER_VERSION);?></td>
                    </tr>
                    <tr>
                        <td>上传附件限制</td>
                        <td><?=ini_get('upload_max_filesize');?></td>
                    </tr>
                    <tr>
                        <td>执行时间限制</td>
                        <td><?=ini_get('max_execution_time');?>秒</td>
                    </tr>

                    </tbody>
                </table>
        </div>
            <div class="panel-heading">开发团队</div>
            <div class="panel-body">
                <table class="table table-bordered table-hover">
                    <tbody>
                    <tr>
                        <td>版权所有</td>
                        <td>XY Team</td>
                    </tr>
                    <tr>
                        <td>负责人</td>
                        <td>Hoter.Zhang Jason.jin</td>
                    </tr>
                    <tr>
                        <td>GitHub</td>
                        <td><a href="javascript:;">GitHub</a></td>
                    </tr>
                    <tr>
                        <td>联系QQ</td>
                        <td>232767044 (hoterzhang)</td>
                    </tr>
                    </tbody>
                </table>
            </div>
    </div>
</div>
</div>
